/*
 * AuthTestPanel.h
 *
 *  Created on: 2012-11-3
 *      Author: tutu
 */

#ifndef AUTHTESTPANEL_H_
#define AUTHTESTPANEL_H_

#include <QWidget>
#include <QPushButton>
#include "../requester/TAuthRequester.h"

class AuthTestPanel : public QWidget
{
	Q_OBJECT

// Member
private:
	QPushButton *_heartbeatButton;
	QPushButton *_logoutButton;
	TAuthRequesterPointer _authRequester;

// Method
public:
	AuthTestPanel(QWidget *parent = 0);
	virtual ~AuthTestPanel();

// Slot
private slots:
	void heartbeatButtonClicked();
	void logoutButtonClicked();
	void heartbeatFinished(bool error);
	void logoutFinished(bool error);
};

#endif /* AUTHTESTPANEL_H_ */
